@echo off
echo ========================================
echo RefundAuditWeb - IIS Deployment Package
echo ========================================
echo.

:: Create deploy directory
if not exist "deploy" mkdir "deploy"

:: Copy files
echo Copying files...
copy "index.html" "deploy\" >nul
copy "api.production.js" "deploy\api.js" >nul
copy "app.js" "deploy\" >nul
copy "web.config" "deploy\" >nul
copy "IIS部署说明.md" "deploy\" >nul

:: Copy static folder if exists
if exist "static" (
    xcopy "static" "deploy\static\" /e /i /q >nul
)

:: Create deployment info
echo RefundAuditWeb - IIS Deployment Package > "deploy\DeploymentInfo.txt"
echo Package Time: %date% %time% >> "deploy\DeploymentInfo.txt"
echo Port Configuration: 8089 >> "deploy\DeploymentInfo.txt"
echo. >> "deploy\DeploymentInfo.txt"
echo Deployment Steps: >> "deploy\DeploymentInfo.txt"
echo 1. Copy all files to D:\Server\RefundAuditWeb\ >> "deploy\DeploymentInfo.txt"
echo 2. Create website in IIS with port 8089 >> "deploy\DeploymentInfo.txt"
echo 3. Follow detailed steps in IIS deployment guide >> "deploy\DeploymentInfo.txt"

echo.
echo Package Complete!
echo.
echo Files in deploy folder:
dir "deploy" /b
echo.
echo Next: Copy deploy folder contents to your IIS server
echo.
pause